<?php
/**
 * Created by PhpStorm.
 * Author: ls
 * Time: 2023/10/10 15:14
 * Desc:
 */
class Request_Api_V2_News extends Request_Api_V2_Base
{
    public function __construct($request_param)
    {
        parent::__construct($request_param);
    }

    public function get_list()
    {
        $this->rules = [
            ['attr_id', ['digit']],
            ['page', ['digit', $this->rule_min(1)]],
            ['pagesize', ['digit', $this->rule_min(1)]],
        ];

        return $this;
    }

    public function get_detail()
    {
        $this->rules = [
            ['id', ['not_empty', 'digit', $this->rule_min(1)]],
        ];

        return $this;
    }


}